<?php

App::uses('AppModel', 'Model');

/**
 * Paralelo Model
 *
 * @property Nivele $Nivele
 * @property Gestione $Gestione
 * @property Horario $Horario
 * @property Alumno $Alumno
 * @property Materia $Materia
 * @property Profesore $Profesore
 */
class Paralelo extends AppModel
{
    //The Associations below have been created with all possible keys, those that are not needed can be removed

    /**
     * belongsTo associations
     *
     * @var array
     */
    public $belongsTo = array(
        'Nivele' => array(
            'className' => 'Nivele',
            'foreignKey' => 'nivele_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

    /**
     * hasMany associations
     *
     * @var array
     */

    /**
     * hasAndBelongsToMany associations
     *
     * @var array
     */
    public $hasAndBelongsToMany = array(
        'Alumno' => array(
            'className' => 'Alumno',
            'joinTable' => 'alumnos_paralelos',
            'foreignKey' => 'paralelo_id',
            'associationForeignKey' => 'alumno_id',
            'unique' => 'keepExisting',
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'finderQuery' => '',
            'deleteQuery' => '',
            'insertQuery' => ''
        ),
        'Materia' => array(
            'className' => 'Materia',
            'joinTable' => 'materias_paralelos',
            'foreignKey' => 'paralelo_id',
            'associationForeignKey' => 'materia_id',
            'unique' => 'keepExisting',
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'finderQuery' => '',
            'deleteQuery' => '',
            'insertQuery' => ''
        ),
        'Profesore' => array(
            'className' => 'Profesore',
            'joinTable' => 'paralelos_profesores',
            'foreignKey' => 'paralelo_id',
            'associationForeignKey' => 'profesore_id',
            'unique' => 'keepExisting',
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'finderQuery' => '',
            'deleteQuery' => '',
            'insertQuery' => ''
        )
    );

}
